/*
 *@Author: 张楚
 *@Date: 2021-08-02 20:49:24
 *@Description: 日常练习模块
*/

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:totaldemo/big_branch/gaode_map.dart';
import 'package:totaldemo/getx/getx_demo/getx_index.dart';
import 'package:totaldemo/getx/getx_home.dart';
import 'package:totaldemo/practice/jpush.dart';
import '../utils/screen_unit.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class Bigbranch extends StatefulWidget {
  const Bigbranch({Key key}) : super(key: key);

  @override
  _BigbranchState createState() => _BigbranchState();
}

class _BigbranchState extends State<Bigbranch> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('大的学习分支'),
        ),
        body: ListView(children: [
          Wrap(
              // mainAxisAlignment: MainAxisAlignment.start,
              direction: Axis.horizontal,
              spacing: 10.w,
              runSpacing: 10.w,
              children: <Widget>[
                ElevatedButton(
                  onPressed: () {
                    Get.to(() => GetXHomePage());
                  },
                  child: Text('学习getx'),
                ),
                // ElevatedButton(
                //   onPressed: () {
                //     Get.to(() => JPushPage());
                //     // var fireDate = DateTime.fromMillisecondsSinceEpoch(
                //     //     DateTime.now().millisecondsSinceEpoch + 3000);
                //     // var localNotification = LocalNotification(
                //     //   id: 234,
                //     //   title: '我是推送测试标题',
                //     //   buildId: 1,
                //     //   content: '看到了说明已经成功了',
                //     //   fireTime: fireDate,
                //     //   subtitle: '一个测试',
                //     // );
                //     // jpush.sendLocalNotification(localNotification).then((res) {
                //     //   setState(() {
                //     //     var debugLable = res;
                //     //   });
                //     // });
                //   },
                //   child: Text('学习极光推送'),
                // ),
                ElevatedButton(
                    onPressed: () {
                      Get.to(() => GetxHomePage());
                    },
                    child: Text('使用getx写demo')),
                ElevatedButton(
                    onPressed: () {
                      // Get.to(() => GaodeMap());
                    },
                    child: Text('高德地图')),
              ])
        ]));
  }
}
